﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace IntelligentDecisioning.SharePoint.Lists.EventReceivers
{
    public class DemoTaskListItemEventReceiver: SPItemEventReceiver
    {
        public override void ItemAdded(SPItemEventProperties properties)
        {
            SPListItem item = properties.ListItem;
            String s = item.Title;
            item["Title"] = s + "_updatedFromEventReceiver";
            item.Update();
        }

        public override void ItemDeleted(SPItemEventProperties properties)
        {
            base.ItemDeleted(properties);
        }
    }
}
